<%-- 
    Document   : add_student_post
    Created on : Nov 24, 2011, 8:18:50 PM
    Author     : THIENSUHACK
--%>

<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Giangvien"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    DataWS a=new DataWS();
    String deletedTeachers[] = request.getParameterValues("deletedTeachers");
    if (deletedTeachers == null)
               {
        out.print("Không có trường dữ liệu nào được chọn!");
        return;
               }
    boolean successful = true;
    int result=0;
    for (int i=0;i<deletedTeachers.length;i++)
    {
        result = 0;
        result = a.xoagiangvien(Integer.parseInt(deletedTeachers[i]));
        if (result == 0)
            successful = false;
    }
   
    
   if(successful)
             {
       out.print("thanh cong");
   }
   else
       out.print("that bai");
           %>